package com.bgds.sys.module.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**

 /**
 * @Description 设备动态属性对应电文属性配置DTO
 * @Author lj
 * @create: 2020-07-22 16:00
 */
@Data
public class PropertyConfigDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    private String deviceCode;
    /**
     * influx表名
     */
    private String measurementName;

    /** 属性Id*/
    private String propertyId;


    /** 属性类型*/
    private String propertyType;

    /**固定长度*/
    private Integer fixedLength;

    private Integer convertTo;
    /**对应电文序号*/
    private Integer seqNumber;

    /**电文号*/
    private String msgKey;

    /**精度*/
    private Integer precision;

    @ApiModelProperty(value = "一级上限报警阈值")
    @TableField("one_top_limit")
    private Float oneTopLimit;

    @ApiModelProperty(value = "二级上限报警阈值")
    @TableField("two_top_limit")
    private Float twoTopLimit;

    @ApiModelProperty(value = "三级上限报警阈值")
    @TableField("three_lop_limit")
    private Float threeTopLimit;

    @ApiModelProperty(value = "一级下限报警阈值")
    @TableField("one_low_limit")
    private Float oneLowLimit;

    @ApiModelProperty(value = "二级下限报警阈值")
    @TableField("two_low_limit")
    private Float twoLowLimit;

    @ApiModelProperty(value = "三级下限报警阈值")
    @TableField("three_low_limit")
    private Float threeLowLimit;

    @ApiModelProperty(value = "是否阈值报警")
    private Boolean alarmFlag;

    @ApiModelProperty(value = "分组编码")
    private String groupCode;

    @ApiModelProperty(value = "分组编码")
    private String alarmFilter;



}
